package com.lagou.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "lagou-service-user", fallback = UserFallback.class, path = "user")
public interface UserClient {

    @RequestMapping("/info/{token}")
    String info(@PathVariable("token") String token);
}
